<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>${sessionScope.USERNAME }的个人中心</title>
		<link href="css/main.css" rel="stylesheet" type="text/css"
			media="screen" />
		<link href="css/form.css" rel="stylesheet" type="text/css"
			media="screen" />
		<script type="text/javascript">
			function isEmail(){
			   var email=document.getElementById("email").value;
		       var reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9_-]{2,3}){1,2})$/;
		       if(!reg.test(email)){
		       		alert("请输入正确的邮箱地址!");
		       		document.form1.email.focus();
		       		return false;
		       }else{
		       		return true;
		       }
		       
			}	
		</script>
	</head>

	<body id="user-center-other">

		<div class="wrapper">
			<!--common header-->

			<jsp:include page="header.jsp" flush="true"></jsp:include>


			<div id="container">

				<h1>
					完善我的个人信息：
				</h1>
				<form id="form1" name="form1" action="userModify" method="post" onsubmit="return isEmail()">
					<input type="hidden" name="condition" value="1">
					<input type="hidden" name="userId" value="${sessionScope.USER.userId}">
					<fieldset>
						<p class="first">

							<label for="name">
								昵称：
							</label>

							<input type="text" name="nickname" id="nickname" size="30" />

						</p>

						<p class="first">

							<label for="name">
								性别：
							</label>

							<input type="text" name="sex" id="sex" size="30" />

						</p>

						<p>

							<label for="email">
								年龄：
							</label>

							<input type="text" name="age" id="age" size="30" />

						</p>

						<p>

							<label for="web">
								qq号：
							</label>

							<input type="text" name="qq" id="qq" size="30" />

						</p>

						<p>

							<label for="email">
								邮箱：
							</label>

							<input type="text" name="email" id="email" size="30" />

						</p>

					</fieldset>

					<fieldset>

						<p>

							<label for="message">
								座右铭：
							</label>

							<textarea name="motto" id="motto" cols="30" rows="10"></textarea>

						</p>

					</fieldset>

					<p class="submit">
						<button type="submit">
							提交
						</button>
					</p>

				</form>

			</div>


		</div>

		<!--footer -->
		<jsp:include page="footer.jsp" flush="true"></jsp:include>
	</body>
</html>